package org.example.erpapiservicespringpgimpl.Dao;

import org.example.erpapicommon.Util.Param.OrderQueryParam;
import org.example.erpapicommon.Util.Param.ProductQueryParam;
import org.example.erpapicommon.model.TOrder;
import org.example.erpapicommon.model.TOrderDetail;
import org.example.erpapicommon.service.OrderService;
import org.example.erpapiservicespringpgimpl.entity.OrderDetailEntity;
import org.example.erpapiservicespringpgimpl.entity.OrderEntity;
import org.example.erpapiservicespringpgimpl.entity.ProductEntity;
import org.seasar.doma.Dao;
import org.seasar.doma.Select;
import org.seasar.doma.boot.ConfigAutowireable;
import org.seasar.doma.jdbc.SelectOptions;

import java.util.List;
import java.util.Optional;

@ConfigAutowireable
@Dao
public interface OrderDao {
    @Select
    Optional<OrderEntity> getOrdersById(String id);

    @Select
     List<OrderDetailEntity> getOrderDetailByOrderId(String OrderId);
    @Select
    List<OrderEntity> PageOrders(OrderQueryParam param, SelectOptions options);
}
